export default {
  name: [
    { required: true, message: "活动名称不能为空", trigger: "blur" },
    { min: 1, max: 15, message: "长度在 1 到 15 个字符", trigger: "blur" }
  ],
  time: [{ required: true, message: "活动时间不能为空", trigger: "blur" }],
  goods_limit: [
    { required: true, message: "商品限制规则不能为空", trigger: "blur" }
  ],
  password: [{ required: true, message: "密码不能为空", trigger: "blur" }]
  // /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/ 身份证号码
  // /^[0-9]*[1-9][0-9]*$/ 整数
  // /^(\d+\.?)?\d{0,2}$/ 整数和小数
  // /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/ 手机
  // /^([a-zA-Z0-9]+[-_\.]?)+@[a-zA-Z0-9]+\.[a-z]+$/ 邮箱

  // name2: [
  //   { required: true, message: '手机不能为空', trigger: 'blur' },
  //   { pattern:/^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/, message: "请输入正确手机", trigger: "blur" }
  // ],
  // createTime: [
  //   { required: true, message: '配送日期不能为空', trigger: 'blur' },
  // ],
  // hospitalName: [
  //   { required: true, message: '请填写医院名称', trigger: 'blur' },
  //   { min: 2, max: 10, message: '长度在 2 到 10 个字符', trigger: 'blur' }
  // ],
  // password: [
  //   { required: true, message: '请填写密码', trigger: 'blur' },
  //   { min: 2, max: 30, message: '密码不能为空', trigger: 'blur' }
  // ],
  // email: [
  //     { required: false, message: '请输入邮箱', trigger: 'blur' },
  //     { type: 'email', message: '邮箱格式不对', trigger: 'blur' }
  // ]
};
